import 'babel-polyfill';
import Vue from 'vue';
import App from './App';
import router from './router';

import {
  Tooltip,
  Dropdown,
  DropdownMenu,
  DropdownItem,
  Loading,
  Card,
  Autocomplete,
  DatePicker,
  Input,
  Select,
  Option,
  Form,
  FormItem,
  Button,
  Radio,
  RadioGroup,
  Icon,
  Row,
  Col,
} from 'element-ui';

Vue.use(Tooltip);
Vue.use(Dropdown);
Vue.use(DropdownMenu);
Vue.use(DropdownItem);
Vue.use(Select);
Vue.use(Autocomplete);
Vue.use(Loading.directive);
Vue.use(DatePicker);
Vue.use(Input);
Vue.use(Option);
Vue.use(Form);
Vue.use(FormItem);
Vue.use(Button);
Vue.use(Radio);
Vue.use(RadioGroup);
Vue.use(Icon);
Vue.use(Row);
Vue.use(Col);
Vue.use(Card);

Vue.prototype.$loading = Loading.service;

Vue.config.productionTip = false;

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>',
});

// import 'font-awesome/css/font-awesome.min.css';
